Skip to content

[PER-10476] Extend Stela conversion in getWithChildren and record mapping#996

Open
aasandei-vsp wants to merge 1 commit into
mainfrom
PER-10476-replace-navigate-lean
Open

[PER-10476] Extend Stela conversion in getWithChildren and record mapping#996
aasandei-vsp wants to merge 1 commit into
mainfrom
PER-10476-replace-navigate-lean

Conversation

@aasandei-vsp

@aasandei-vsp aasandei-vsp commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Issue: PER-10476
Subtask: https://permanent.atlassian.net/browse/PER-10677

The tests are only to make sure we didn't make any regressions, as it does not bring any new functionality.

Manual test cases — Stela conversion in getWithChildren and record mapping

Setup: log in on an archive that has folders with images, records with metadata, and at least one unlisted share link.
EXPECTED: private/public navigation is unaffected by this PR (still uses navigateLean) — only the flows below need testing.


Unlisted share link — folder

  1. Open an unlisted share link to a folder in an incognito window.
    • EXPECTED: The folder contents load correctly.
  2. Navigate into a subfolder, then go back up using the breadcrumbs.
    • EXPECTED: Breadcrumb labels are correct and each breadcrumb link navigates to the right folder.
  3. Open the same share link while logged in.
    • EXPECTED: The folder contents load correctly.

Unlisted share link — error handling

  1. Open an invalid or revoked unlisted share link.
    • EXPECTED: A graceful error message is shown — no blank page, no errors in the console.

Sidebar — record

  1. Select a record and wait for the sidebar to finish loading.
    • EXPECTED: Full metadata is shown (dates, description, tags, location).
  2. Click the Share button.
    • EXPECTED: The button is enabled and the sharing dialog opens. (Bug fix in this PR — the v2 record conversion previously dropped accessRole, leaving the button permanently disabled.)

Sidebar — folder

  1. Select a folder and wait for the sidebar to finish loading.
    • EXPECTED: Full metadata is shown and the Share button is enabled.

Record and folder edits (v2 endpoints)

  1. Edit a record's date/time via the edit modal.
    • EXPECTED: The value saves and redisplays correctly after the sidebar refreshes.
  2. Edit a folder's date.
    • EXPECTED: The value saves and redisplays correctly.

@aasandei-vsp aasandei-vsp self-assigned this Apr 21, 2026
@aasandei-vsp
aasandei-vsp marked this pull request as draft April 21, 2026 13:13
@codecov

codecov Bot commented Apr 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.14%. Comparing base (0fdfe8f) to head (e54b14f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #996      +/-   ##
==========================================
+ Coverage   52.13%   52.14%   +0.01%     
==========================================
  Files         354      354              
  Lines       12085    12095      +10     
  Branches     2181     2183       +2     
==========================================
+ Hits         6300     6307       +7     
- Misses       5555     5562       +7     
+ Partials      230      226       -4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aasandei-vsp aasandei-vsp changed the title [WIP] [PER-10476] Replace navigateLean with getWithChildren [WIP] [PER-10476] [BLOCKED BY BE] Replace navigateLean with getWithChildren Jun 4, 2026
@aasandei-vsp
aasandei-vsp force-pushed the PER-10476-replace-navigate-lean branch from b65fcfb to bb0a021 Compare July 8, 2026 13:30
Map archiveNumber, folderLinkId, parentFolderLinkId, the breadcrumb
path arrays, and created/updated timestamps from the Stela folder
response. Resolve missing folderIds through the legacy /folder/get
endpoint, fetch the folder and its children in parallel, and convert
failures into v1-shaped error responses so existing error handlers
keep working. Hardcode accessRole to owner on both converted folders
and records, since the backend removed the item-level field; without
it, permission gates like the sidebar share button treated records
as inaccessible.

Issue: PER-10476
@aasandei-vsp
aasandei-vsp force-pushed the PER-10476-replace-navigate-lean branch from bb0a021 to e54b14f Compare July 16, 2026 08:56
@aasandei-vsp aasandei-vsp changed the title [WIP] [PER-10476] [BLOCKED BY BE] Replace navigateLean with getWithChildren [PER-10476] Extend Stela conversion in getWithChildren and record mapping Jul 16, 2026
@aasandei-vsp
aasandei-vsp marked this pull request as ready for review July 16, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant